EMT Practice Test

1. Question Content...


Question List

Question1: Which of the following expression evaluate to True? (Select two answers)

Question2: A Python module named pymod.py contains a variable named pyvar.
Which of the following snippets will let you access the variable? (Select two answers)

Question3: Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)

Question4: Which of the following statement are true? (Select two answers)

Question5: Which of the following lambda definitions are correct? (Select two answers)

Question6: What is the expected output of the following code?
def foo(x,y,z):
return x(y) - x(z)
print{f00(lambda x: x % 2, 2, 1) )

Question7: A property that stores information about a given class's super-classes is named:

Question8: Which of the following statements are true? (Select two answers)

Question9: What is the expected output of the following code if existing_file is the name of a file located inside the working directory?

Question10: What is the expected behavior of the following code?

Question11: What is the expected behavior of the following code?

Question12: What is true about Python packages? (Select two answers)

Question13: Assuming that the following inheritance set is in force, which of the following classes are declared properly?
(Select two answers)

Question14: What is the expected behavior of the following code?

Question15: Which of the following snippets will execute without raising any unhandled exceptions? (Select answers) A)

B)

C)

D)

Question16: What is the expected behavior of the following code?

Question17: Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers) Def f (x, y); Nom, denom = x, y def g ( ) ; Return nom / denom A = f (1, 2) B = f (3, 4)

Question18: Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 1] ? (Select two answers)

Question19: Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)